package com.guojunyu.exp3.demo.conf;

import com.guojunyu.exp3.demo.service.EpidemicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class InitData {

    @Autowired
    EpidemicService epidemicService;

    @PostConstruct
    public void initData() {
        epidemicService.getData();
    }

}
